import { createApp } from 'vue';
import App from './App.vue';
import router from '@/router';
import { useREM } from '@/utils/flexible';
import mLibs from '@/libs';
import { lazy as mLazy } from '@/directives';
import '@/styles/index.css';
// 注册 svg 图标
import 'virtual:svg-icons-register';
import pinia from '@/store';
import { useTheme } from '@/composables';

import './permission';

useREM();

createApp(App).use(router).use(pinia).use(mLazy).use(mLibs).mount('#app');

useTheme();
